package com.shujia.wyh.day07.ketang;


abstract class Demo10{
    public abstract void study();
}


class Student10{
    public void fun1(Demo10 demo10){
        demo10.study();
    }
}
public class StudentDemo10 {
    public static void main(String[] args) {
        Student10 student10 = new Student10();
        student10.fun1(new Demo10() {
            @Override
            public void study() {
                System.out.println("好好学习，天天向上");
            }
        });
    }
}
